import TabsView from '@/layouts/tabs/TabsView'
import BlankView from '@/layouts/BlankView'
import PageView from '@/layouts/PageView'

// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import('@/pages/login')
    },
    {
      path: '*',
      name: '404',
      component: () => import('@/pages/exception/404')
    },
    {
      path: '/403',
      name: '403',
      component: () => import('@/pages/exception/403')
    },
    {
      path: '/',
      name: '内容',
      component: TabsView,
      redirect: '/dashboard/workplace',
      children: [
        {
          path: 'dashboard',
          name: '首页',
          meta: {
            icon: 'dashboard'
          },
          component: BlankView,
          children: [
            {
              path: 'workplace',
              name: '工作台',
              meta: {
                page: {
                  closable: false
                }
              },
              component: () => import('@/pages/dashboard/workplace')
            }
          ]
        },
        // 超级管理员
        {
          path: 'admin',
          name: '超级管理员',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'list',
              name: '登录及管理品牌配置',
              component: () => import('@/pages/admin/loginadmin')
            },
            {
              path: 'permission',
              name: '菜单权限列表',
              component: () => import('@/pages/admin/permission')
            },
            {
              path: 'roles',
              name: '角色创建及权限配置',
              component: () => import('@/pages/admin/roles')
            }
          ]
        },
        // 收益管理
        {
          path: 'income',
          name: '收益管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'list',
              name: '收益明细',
              component: () => import('@/pages/income/incomedetail')
            },
            {
              path: 'activateRewards',
              name: '激活奖励',
              component: () => import('@/pages/income/activateaward')
            },
            {
              path: 'issuedLargeDividend',
              name: '大盘分红',
              component: () => import('@/pages/income/Large-capdividend')
            },
            {
              path: 'largeCapUsers',
              name: '大盘用户',
              component: () => import('@/pages/income/Largemarketuser')
            },
            {
              path: 'debtTeamDividend',
              name: '债务团队分红',
              component: () => import('@/pages/income/debtteamdividend')
            },
            {
              path: 'universalDividend',
              name: '全民分红',
              component: () => import('@/pages/income/universaldividend')
            },
            {
              path: 'detailpage',
              name: '分润详情',
              meta: {
                invisible: true
              },
              component: () => import('@/pages/income/universaldividend/DetailPage.vue')
            }
          ]
        },

        // 跟进管理
        {
          path: 'follow',
          name: '跟进管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'autoFollowUpSetting',
              name: '自动跟进设置',
              component: () => import('@/pages/follow/automaticfollowsetting')
            },
            {
              path: 'chaseUserSemi',
              name: '半自动跟进设置',
              component: () => import('@/pages/follow/semi-automatic')
            },
            {
              path: 'userFollowUpList',
              name: '会员跟进列表',
              component: () => import('@/pages/follow/memberfollowlist')
            }
          ]
        },
        // 会员管理
        {
          path: 'userinfo',
          name: '会员管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'list',
              name: '会员列表',
              component: () => import('@/pages/userinfo/userlist')
            },
            {
              path: 'account',
              name: '结算卡列表',
              component: () => import('@/pages/userinfo/account')
            },
            {
              path: 'creditcard',
              name: '信用卡列表',
              component: () => import('@/pages/userinfo/bankcard')
            },
            {
              path: 'depositcard',
              name: '储蓄卡列表',
              component: () => import('@/pages/userinfo/depositcard')
            },
            {
              path: 'relationchange',
              name: '会员关系修改',
              component: () => import('@/pages/userinfo/relatedit')
            }
          ]
        },
        {
          path: 'userinfo/realverify',
          name: '手持认证',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: () => import('@/pages/userinfo/realverify')
        },

        // 交易管理
        {
          path: 'transaction',
          name: '交易管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: true
            }
          },
          component: PageView,
          children: [
            {
              path: 'list',
              name: '代还计划列表',
              component: () => import('@/pages/transaction/list')
            },

            {
              path: 'repaymentdailyprocess',
              name: '每日计划代处理',
              component: () => import('@/pages/transaction/repaymentdailyprocess')
            },
            {
              path: 'smallPlanUnbalanced',
              name: '小计划消还不平账',
              component: () => import('@/pages/transaction/smallPlanUnbalanced')
            },
            {
              path: 'BankTurnover',
              name: '银行交易量统计',
              component: () => import('@/pages/transaction/BankTurnover')
            },
            {
              path: 'userNotice',
              name: '用户通知',
              component: () => import('@/pages/transaction/userNotice')
            },
            {
              path: 'plandetails',
              name: '列表详情',
              meta: {
                invisible: true
              },
              component: () => import('@/pages/transaction/plandetails')
            }
          ]
        },
        {
          path: 'transaction/fast',
          name: '快捷管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: () => import('@/pages/transaction/fast')
        },
        {
          path: 'user/Withdrawal',
          name: '提现管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: () => import('@/pages/user/Withdrawal/index')
        },
        // 通道管理
        {
          path: 'channel',
          name: '通道管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'channelCodingList',
              name: '(配置)编码/通道列表',
              component: () => import('@/pages/channel/channelCodingList')
            },
            {
              path: 'banklist',
              name: '(配置)平台路由费率',
              component: () => import('@/pages/channel/banklist')
            },
            {
              path: 'brandbanklist',
              name: '(配置)品牌商费率',
              component: () => import('@/pages/channel/brandbanklist')
            },
            {
              path: 'ratelist',
              name: '等级(通道)费率配置',
              component: () => import('@/pages/channel/ratelist')
            },
            {
              path: 'levelchannelbank',
              name: '等级(银行)费率配置',
              component: () => import('@/pages/channel/levelchannelbank')
            },
            {
              path: 'ChannelDefaultManage',
              name: '通道默认管理',
              component: () => import('@/pages/channel/ChannelDefaultManage')
            }
          ]
        },
        // 产品管理
        {
          path: 'product',
          name: '产品管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'userLevelSetting',
              name: '用户等级设置',
              component: () => import('@/pages/product/userLevelSetting')
            },
            {
              path: 'automaticUpgrade',
              name: '用户自动升级配置',
              component: () => import('@/pages/product/automaticUpgrade')
            },
            {
              path: 'gradeMember',
              name: '等级失效/参与招商配置',
              component: () => import('@/pages/product/gradeMember')
            },
            {
              path: 'activationCodeRules',
              name: '付费赠送激活码规则',
              component: () => import('@/pages/product/activationCodeRules')
            },
            {
              path: 'levelAdjustmentRules',
              name: 'APP端调级规则配置',
              component: () => import('@/pages/product/levelAdjustmentRules')
            },
            {
              path: 'buyLevelList',
              name: '购买等级订单列表',
              component: () => import('@/pages/product/buyLevelList')
            },
            {
              path: 'activationCodeManagement',
              name: '激活码管理',
              component: () => import('@/pages/product/activationCodeManagement')
            },
            {
              path: 'debtGiftPackage',
              name: '债务礼包',
              component: () => import('@/pages/product/debtGiftPackage')
            },
            {
              path: 'debtGiftPackageOrder',
              name: '债务礼包订单',
              component: () => import('@/pages/product/debtGiftPackageOrder')
            },
            {
              path: 'teamMemberPermission',
              name: 'APP端团队成员权限',
              component: () => import('@/pages/product/teamMemberPermission')
            },
            {
              path: 'promptManage',
              name: 'APP提示管理',
              component: () => import('@/pages/product/promptManage')
            },
            {
              path: 'appConfigManagement',
              name: 'APP配置管理',
              component: () => import('@/pages/product/appConfigManagement')
            },
            {
              path: 'purchaseLevelRules',
              name: '购买等级限制规则',
              component: () => import('@/pages/product/purchaseLevelRules')
            }
          ]
        },
        // 品牌管理
        {
          path: 'brand',
          name: '品牌管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'list',
              name: '品牌列表',
              component: () => import('@/pages/brand/list')
            },
            {
              path: 'message',
              name: '公告栏',
              component: () => import('@/pages/brand/message')
            },
            {
              path: 'banner',
              name: '轮播图',
              component: () => import('@/pages/brand/banner')
            },
            {
              path: 'shareimgs',
              name: '推广图',
              component: () => import('@/pages/brand/shareimgs')
            },
            {
              path: 'wechatmessage',
              name: '朋友圈文案',
              component: () => import('@/pages/brand/wechatmessage')
            },
            {
              path: 'privacyagreement',
              name: '隐私协议',
              component: () => import('@/pages/brand/privacyagreement')
            },
            {
              path: 'aboutus',
              name: '关于我们',
              component: () => import('@/pages/brand/aboutus')
            },
            {
              path: 'article',
              name: '图文管理',
              component: () => import('@/pages/brand/article')
            },
            {
              path: 'service',
              name: '客服管理',
              component: () => import('@/pages/brand/service')
            },
            {
              path: 'feedback',
              name: '意见反馈',
              component: () => import('@/pages/brand/feedback')
            }
          ]
        },
        // 返佣设置
        {
          path: 'return',
          name: '返佣设置',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'realname',
              name: '实名注册',
              component: () => import('@/pages/return/realname')
            },
            {
              path: 'activation',
              name: '激活奖励',
              component: () => import('@/pages/return/activation')
            },
            {
              path: 'fristquickpay',
              name: '快捷首刷',
              component: () => import('@/pages/return/fristquickpay')
            },
            {
              path: 'differentialLevelProfit',
              name: '级差平级分润',
              component: () => import('@/pages/return/differentialLevelProfit')
            },
            {
              path: 'selfUseRateNumber',
              name: '自用返费率笔数费分润',
              component: () => import('@/pages/return/selfUseRateNumber')
            },
            {
              path: 'nolevelsixpaynum',
              name: '无视级别笔数费返佣',
              component: () => import('@/pages/return/nolevelsixpaynum')
            },
            {
              path: 'investmentDirect',
              name: '招商直推',
              component: () => import('@/pages/return/investmentDirect')
            },
            {
              path: 'investmentTeam',
              name: '招商团队',
              component: () => import('@/pages/return/investmentTeam')
            },
            {
              path: 'allpeople',
              name: '全民分红',
              component: () => import('@/pages/return/allpeople')
            },
            {
              path: 'largeDividend',
              name: '大盘分红',
              component: () => import('@/pages/return/largeDividend')
            },
            {
              path: 'withdrawal',
              name: '提现返佣',
              component: () => import('@/pages/return/withdrawal')
            },
            {
              path: 'debtGiftProfitConfig',
              name: '债务礼包分润配置',
              component: () => import('@/pages/return/debtGiftProfitConfig')
            },
            {
              path: 'qmCourtship',
              name: 'QM招商',
              component: () => import('@/pages/return/qmCourtship')
            },
            {
              path: 'courseCourtship',
              name: '课程收益',
              component: () => import('@/pages/return/courseCourtship')
            }
          ]
        },
        // 交易管理
        {
          path: 'system',
          name: '系统设置',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'zjtgsystem',
              name: '中介托管权限设置',
              component: () => import('@/pages/system/zjtgsystem')
            },
            {
              path: 'yebzystem',
              name: '余额不足系统设置',
              component: () => import('@/pages/system/yebzystem')
            },
            {
              path: 'smsystem',
              name: '手持和计划取消推送设置',
              component: () => import('@/pages/system/smsystem')
            },
            {
              path: 'quicksystem',
              name: '快捷设置',
              component: () => import('@/pages/system/quicksystem')
            },
            {
              path: 'cardxtjqsz',
              name: '信用卡签约默认设置',
              component: () => import('@/pages/system/cardxtjqsz')
            },
            {
              path: 'withdrawConfig',
              name: '用户收益提现配置',
              component: () => import('@/pages/system/withdrawConfig')
            },
            {
              path: 'withdrawPaySetting',
              name: '品牌提现代付设置',
              component: () => import('@/pages/system/withdrawPaySetting')
            },
            {
              path: 'alipayPaymentSetting',
              name: '支付宝支付设置',
              component: () => import('@/pages/system/alipayPaymentSetting')
            },
            {
              path: 'versionUpdateRecord',
              name: 'App升级配置',
              component: () => import('@/pages/system/versionUpdateRecord')
            },
            {
              path: 'bankFourElements',
              name: '银行卡四要素',
              component: () => import('@/pages/system/bankFourElements')
            },
            {
              path: 'cloudStorage',
              name: '云存储',
              component: () => import('@/pages/system/cloudStorage')
            },
            {
              path: 'newSifang',
              name: '新四方',
              component: () => import('@/pages/system/newSifang')
            },
            {
              path: 'smsGateway',
              name: '短信网关',
              component: () => import('@/pages/system/smsGateway')
            },
            {
              path: 'appMyRate',
              name: 'App我的费率配置',
              component: () => import('@/pages/system/appMyRate')
            },
            {
              path: 'plannedBenefitsSort',
              name: '计划收益排序',
              component: () => import('@/pages/system/plannedBenefitsSort')
            }
          ]
        },
        // 短信管理
        {
          path: 'smslog',
          name: '短信管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'list',
              name: '短信记录',
              component: () => import('@/pages/smslog/list')
            }
          ]
        },
        // 字典管理
        {
          path: 'dict',
          name: '字典管理',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: PageView,
          children: [
            {
              path: 'bank',
              name: '银行卡',
              component: () => import('@/pages/dict/bank')
            },
            {
              path: 'language',
              name: '语言',
              component: () => import('@/pages/dict/language')
            }
          ]
        },
        {
          path: 'statistics/BankTurnover',
          name: '统计',
          meta: {
            icon: 'form',
            page: {
              cacheAble: false
            }
          },
          component: () => import('@/pages/statistics/BankTurnover')
        }
      ]
    }
  ]
}

export default options
